﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartmentEdit.aspx.cs" Inherits="Web.Page.DepartmentEdit" %>
<%@ Register TagPrefix="cc1" Namespace="Liaojy.UI.WebControls" Assembly="Liaojy.UI.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>部门编辑</title>
    <link href="../Css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">


        .style1
        {
            color: #FF3300;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />  
        <asp:UpdatePanel ID="UpdatePanel2" runat="server"  UpdateMode="Conditional">
            <ContentTemplate>                   

        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="15" height="30">
                            <img src="../images/tab_03.gif" width="15" height="30" />
                        </td>
                        <td width="1101" background="../images/tab_05.gif">
                            <img src="../images/311.gif" width="16" height="16" />
                            <span class="STYLE4"><asp:Label runat="server" ID="lblTitle"></asp:Label></span>
                            &nbsp;<span class="STYLE4"><a href="DepartmentManage.aspx">返回</span>
                        </td>

                        <td width="281" background="../images/tab_05.gif" align="right">
                            <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/images/del.png" 
                                onclick="btnDel_Click" />
                            &nbsp;&nbsp;
                         <asp:HyperLink ID="hlAddDepartment" runat="server" 
                                ImageUrl="~/images/user/group_add.png">新增部门</asp:HyperLink>
                                &nbsp;&nbsp;
                            <asp:HyperLink ID="hlAddUser" runat="server" 
                                ImageUrl="~/images/user/user_add.png">新增用户</asp:HyperLink>
                        </td>
                        <td width="14">
                            <img src="../images/tab_07.gif" width="14" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="9" background="../images/tab_12.gif">
                            &nbsp;
                        </td>
                        <td bgcolor="#f3ffe3" style="font-size: 12px;">
                            <p>
                            </p>
                            <table border="0" width="100%" style="height: 100%;">
                                <tr>
                                    <td style="width: 120px; text-align: right;">
                                        编号:
                                    </td>
                                    <td style="text-align: left;">
                                        &nbsp;<asp:TextBox 
                                            ID="tbCode" runat="server" MaxLength="2"></asp:TextBox>
                                        <span class="style1">*</span><asp:RequiredFieldValidator 
                                            ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbCode" 
                                            Display="Dynamic" ErrorMessage="*" ForeColor="Red">请输入编号</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 120px; text-align: right;">
                                        名称: 
                                    </td>
                                    <td style="text-align: left;">
                                       &nbsp;<asp:TextBox 
                                            ID="tbName" runat="server" MaxLength="32"></asp:TextBox>
                                        <span class="style1">*</span><asp:RequiredFieldValidator 
                                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbName" 
                                            Display="Dynamic" ErrorMessage="*" ForeColor="Red">请输入名称</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td style="width: 120px; text-align: right;">
                                        备注: 
                                    </td>
                                    <td style="text-align: left;">
                                       &nbsp;<asp:TextBox 
                                            ID="tbDescription" runat="server" MaxLength="64"></asp:TextBox>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:Label ID="lbResult" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />&nbsp;&nbsp;<asp:Button ID="btnCancel"
                                            runat="server" Text="取消" onclick="btnCancel_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="9" background="../images/tab_16.gif">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="29">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="15" height="29">
                            <img src="../images/tab_20.gif" width="15" height="29" />
                        </td>
                        <td background="../images/tab_21.gif">
                                        <asp:HiddenField ID="hdId" runat="server" />
                        </td>
                        <td width="14">
                            <img src="../images/tab_22.gif" width="14" height="29" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

        </ContentTemplate>
        </asp:UpdatePanel>

        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <img src="../images/indicator.gif" />&nbsp;&nbsp;正在保存，请稍候 ...
            </ProgressTemplate>
        </asp:UpdateProgress>
    </form>
</body>
</html>
